<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="com.lims.action.base.BaseAction"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<s:i18n name="person">
	<html>
		<head>
			<base target="right" />



			<link href="<s:url value="../css/mainstyle.css"/>" rel="stylesheet"
				type="text/css" />

			<title></title>

			 <style type="text/css">
 body {margin:0;text-align:center;color:#000;font:normal 12px Arial,Verdana,Tahoma;text-align:center;background:#C8D0D5;line-height:150%;}
 a:link,a:visited {color:#385065;text-decoration:none}
 a:hover {text-decoration:underline}
 #menu {width:150px;margin:0px 15px;padding:0px;text-align:left;list-style:none}
 #menu .item {margin:5px 0px;padding:0px;list-style:none}
 a.title:link, a.title:visited, a.title:hover {display:block;background:url(../images/m20069110491.gif) no-repeat;color:#385065;font-weight:bold;padding:2px 0 0 22px;width:128px;line-height:23px;cursor:pointer;text-decoration:none}
 #menu .item ul {border:1px solid #9FACB7;margin:0;width:118px;padding:3px 0px 3px 30px;background:#fff;list-style:none;display:none}
 #menu .item ul li {display:block;}
 </style>
 <script language="javascript" type="text/javascript">
 // --- 获取ClassName
 document.getElementsByClassName = function(cl) {
  var retnode = [];
  var myclass = new RegExp('\\b'+cl+'\\b');
  var elem = this.getElementsByTagName('*');
  for (var j = 0; j < elem.length; j++) {
   var classes = elem[j].className;
   if (myclass.test(classes)) retnode.push(elem[j]);
  }
  return retnode;
 }
 // --- 隐藏所有
 function HideAll() {
  var items = document.getElementsByClassName("optiton");
  for (var j=0; j<items.length; j++) {
   items[j].style.display = "none";
  }
 }
 // --- 设置cookie
 function setCookie(sName,sValue,expireHours) {
  var cookieString = sName + "=" + escape(sValue);
  //;判断是否设置过期时间
  if (expireHours>0) {
    var date = new Date();
    date.setTime(date.getTime + expireHours * 3600 * 1000);
    cookieString = cookieString + "; expire=" + date.toGMTString();
  }
  document.cookie = cookieString;
 }
 //--- 获取cookie
 function getCookie(sName) {
   var aCookie = document.cookie.split("; ");
   for (var j=0; j < aCookie.length; j++){
  var aCrumb = aCookie[j].split("=");
  if (escape(sName) == aCrumb[0])
    return unescape(aCrumb[1]);
   }
   return null;
 }
 window.onload = function() {
  var show_item = "opt_1";
  if (getCookie("show_item") != null) {
    show_item= "opt_" + getCookie("show_item");
  }
  document.getElementById(show_item).style.display = "block";
  var items = document.getElementsByClassName("title");
  for (var j=0; j<items.length; j++) {
   items[j].onclick = function() {
    var o = document.getElementById("opt_" + this.name);
    if (o.style.display != "block") {
     HideAll();
     o.style.display = "block";
     setCookie("show_item",this.name);
    }
    else {
     o.style.display = "none";
    }
   }
  }
 }
 </script>
		</head>

		<body
			style="background-image: url('../images/back.jpg'); padding: 0px;">
			<form id="form1">
				<div id="welcome" style="height: 30px">

					<s:set name="gender" value="#session.person.gender.pid"></s:set>

					<s:if test="%{#gender==1}">
						<s:text name="left.welcome">
							<s:param> Mr.<s:property
									value="#session.person.lastName" />
							</s:param>
						</s:text>
					</s:if>
					<s:elseif test="%{#gender==2}">
						<s:text name="left.welcome">
							<s:param> Ms.<s:property
									value="#session.person.lastName" />
							</s:param>
						</s:text>
					</s:elseif>

					<br />



				</div>
				<ul id="menu">
				 <li class="item"><a href="javascript:void(0)" class="title" name="1">销售人员</a>
				<ul  id="opt_1" class="optiton">
					<li><a href="../project/initShowProjectAction.action" >委托书管理</a></li>
				</ul>
				</li>
				<li class="item"><a href="javascript:void(0)" class="title" name="2">客服人员</a>
				<ul  id="opt_2" class="optiton">
					<li><a href="../project/initShowProjectAction.action" >任务下达</a></li>
					<li><a href="../project/addTransfer.jsp" >样品转接</a></li>
				</ul>
				
				</li>
				
				<li class="item"><a href="javascript:void(0)" class="title" name="3">实验室主管</a>
				<ul  id="opt_3" class="optiton">
					<li><a href="../project/initShowProjectAction.action" >审核任务下达</a></li>
					<li><a href="../project/initShowProjectAction.action" >审核样品转接</a></li>
					<li><a href="../project/initShowProjectAction.action" >报告审核</a></li>
				</ul>
				
				</li>
				<li class="item"><a href="javascript:void(0)" class="title" name="4">光谱组</a>
				<ul  id="opt_4" class="optiton">
					<li><a href="../project/showTaskByDepartmentAction.action?department.pid=1" >任务处理</a></li>
					
				</ul>
				</li>
				<li class="item"><a href="javascript:void(0)" class="title" name="5">化分组</a>
				<ul  id="opt_5" class="optiton">
					<li><a href="../project/showTaskByDepartmentAction.action?department.pid=2" >任务处理</a></li>
				</ul>
				</li>
				
				<li class="item"><a href="javascript:void(0)" class="title" name="6">气相组</a>
				<ul  id="opt_6" class="optiton">
					<li><a href="../project/showTaskByDepartmentAction.action?department.pid=3" >任务处理</a></li>
				</ul>
				</li>
				
				
				<li class="item"><a href="javascript:void(0)" class="title" name="7">液相组</a>
				<ul  id="opt_7" class="optiton">
					<li><a href="../project/showTaskByDepartmentAction.action?department.pid=4" >任务处理</a></li>
				</ul>
				</li>
				
				<li class="item"><a href="javascript:void(0)" class="title" name="8">质谱组</a>
				<ul  id="opt_8" class="optiton">
					<li><a href="../project/showTaskByDepartmentAction.action?department.pid=5" >任务处理</a></li>
				</ul>
				</li>
				
					<li class="item"><a href="javascript:void(0)" class="title" name="9">报告文员</a>
				<ul  id="opt_9" class="optiton">
					<li><a href="../project/initShowProjectAction.action" >整合报告</a></li>
				</ul>
				</li>
				
				
				
				<li class="item">
				<a href="javascript:void(0)" class="title" name="20">系统管理</a>
				<ul  id="opt_20" class="optiton">
<li><s:a href="../admin/logoutAction.action"
							targets="_parent._parent._parent">
							退出
						</s:a></li>
				</ul>
						
					</li>
				</ul>
			</form>








		</body>
	</html>
</s:i18n>